package org.jeecg.modules.demo.erp.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 商品目录表
 * @Author: jeecg-boot
 * @Date:   2021-10-25
 * @Version: V1.0
 */
@Data
@TableName("erp_product")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="erp_product对象", description="商品目录表")
public class ErpProduct implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**商品细分类编号, 外键*/
	@Excel(name = "商品细分类编号, 外键", width = 15, dictTable = "erp_productlist", dicText = "name", dicCode = "id")
	@Dict(dictTable = "erp_productlist", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "商品细分类编号, 外键")
    private java.lang.String productlistId;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private java.lang.String name;
	/**商品规格, 外键*/
	@Excel(name = "商品规格, 外键", width = 15, dictTable = "erp_productspec", dicText = "name", dicCode = "id")
	@Dict(dictTable = "erp_productspec", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "商品规格, 外键")
    private java.lang.String productspecId;
	/**计量单位*/
	@Excel(name = "计量单位", width = 15, dictTable = "erp_productunit", dicText = "name", dicCode = "id")
	@Dict(dictTable = "erp_productunit", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "计量单位")
    private java.lang.String productunitId;
	/**进价*/
	@Excel(name = "进价", width = 15)
    @ApiModelProperty(value = "进价")
    private java.lang.String purchasePrice;
	/** 参考价格*/
	@Excel(name = " 参考价格", width = 15)
    @ApiModelProperty(value = " 参考价格")
    private java.lang.Integer price;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
}
